/**
 * Created by minigci.he on 16/9/21.
 */
console.log('-------------------------------')
console.log('test17')

function strMapToObj(strMap){
    let obj = Object.create(null);
    for(let [k, v] of strMap){
        obj[k] = v
    }
    return obj;
}

let myMap = new Map().set('yes', true).set('no', false)
var obj = strMapToObj(myMap);
console.log(obj)    //  {yes: true, no: false}
